# HackerPort driver for Linux - PIC programmer
# version 0.7.2 date 2007-05-04
# part of the hacker port project - http[s]://stefan.schuermans.info/hackerport/
# Copyright (C) 2003-2004 stefan <stefan@schuermans.info>
# Copyleft: GNU public license - http://www.gnu.org/copyleft/gpl.html

CC = gcc
CFLAGS = -Wall -O2
LFLAGS = 

.phony: all clean

all: hkp_drv_picprog

hexfile.o: hexfile.c hexfile.h
	$(CC) $(CFLAGS) -c -o hexfile.o hexfile.c

hkp_drv_picprog.o: hkp_drv_picprog.c hexfile.h hkp_drv.h
	$(CC) $(CFLAGS) -c -o hkp_drv_picprog.o hkp_drv_picprog.c

hkp_drv_picprog: hexfile.o hkp_drv_picprog.o
	$(CC) $(LFLAGS) -o hkp_drv_picprog hexfile.o hkp_drv_picprog.o

clean:
	rm -f *.o hkp_drv_picprog
